﻿using System;
using System.Collections.Generic;

namespace SBPweb.Communication.Client.Library.Xmpp.Configuration
{

    partial class ConfigurationManager
    {

        #region Property accessors

        public IDictionary<string, string> Parameters
        {
            get;
            set;
        }

        #endregion

        #region Methods

        protected override void OnInitialize()
        {
            messenger.Commands.ApplyConfiguration(new Commands.CommandManagerConfigurationParser(Parameters));
            messenger.Connections.ApplyConfiguration(new Connections.ConnectionManagerConfigurationParser(Parameters));
            messenger.Contacts.ApplyConfiguration(new Contacts.ContactManagerConfigurationParser(Parameters));
            messenger.Conversations.ApplyConfiguration(new Conversations.ConversationManagerConfigurationParser(Parameters));
            messenger.Profiles.ApplyConfiguration(new Profiles.ProfileManagerConfigurationParser(Parameters));
        }

        protected override void OnTerminate()
        {
        }

        #endregion

    }

}